#include<bits/stdc++.h>
using namespace std;
int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    int a[10005];
    int n;
    cin>>n;
    int box=n;
    for(int i=0;i<n;i++){
        cin>>a[i];
    }
    for(int i=1;i<n;i++){
        if(a[i-1]<a[i]&&a[i-1]!=0){
            box--;
            a[i-1]=0;
            sort(a,a+n);
        }
    }
    cout<<box;
    return 0;
}

